package com.dpiinc.TechPage.room.bean;


import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * Created by hu489_000 on 2018-07-01.
 */

@Entity(tableName = "PenEntity")
public class PenEntity {

    /**
     * 智能笔id
     */
    @PrimaryKey
    @NonNull
    private String penId;
    @ColumnInfo(name = "name")
    private String name;
    @ColumnInfo(name = "macAddress")
    private String macAddress;

    @NonNull
    public String getPenId() {
        return penId;
    }

    public void setPenId(@NonNull String penId) {
        this.penId = penId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMacAddress() {
        return macAddress;
    }

    public void setMacAddress(String macAddress) {
        this.macAddress = macAddress;
    }

    @Override
    public String toString() {
        return "PenEntity{" +
                "penId='" + penId + '\'' +
                ", name='" + name + '\'' +
                ", macAddress='" + macAddress + '\'' +
                '}';
    }
}
